home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr49 / pcspeed.zip / TICKS.A < prev   
Text File  |  1993-05-16  |  666b  |  41 lines

  1. ; Copyright (c) 1985 Martin Nohr and Tom Serface
  2. ; All Rights Reserved
  3. ;
  4. ;Revision    Date        Description
  5. ;--------    ---------    --------------------------------------------
  6.  
  7.     cseg
  8. ;Ticks        Get Current Clock Tick Count
  9. ;
  10. ;        Call as: time = Ticks()
  11. ;long Ticks();
  12. ;long time;
  13.  
  14.     public Ticks_
  15. Ticks_:
  16.     push    bp
  17.     mov    ax,0000h
  18.     int    1ah
  19.     mov    ax,dx
  20.     mov    dx,cx
  21.     pop    bp
  22.     ret
  23. ;SetClock    Set the Clock by entering a Tick Count
  24. ;        Tick counts are 18.2 per second
  25. ;
  26. ;        Call as: SetClock(time)
  27. ;void SetClock();
  28. ;long time;
  29.  
  30.     public SetClock_
  31. SetClock_:
  32.     push    bp
  33.     mov    bp,sp
  34.     mov    cx,[bp+4]
  35.     mov    dx,[bp+6]
  36.     mov    ax,0100
  37.     int    1ah
  38.     xor    ax,ax
  39.     pop    bp
  40.     ret
  41.